//
//  MedecineCell.m
//  HealthA段
//
//  Created by dllo on 15/6/5.
//  Copyright (c) 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MedecineCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation MedecineCell

- (void)awakeFromNib {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.medcineText = [[UILabel alloc] init];
        [self.contentView addSubview:self.medcineText];
        [_medcineText release];
        
        self.medcineImg = [[UIImageView alloc] init];
        [self.contentView addSubview:self.medcineImg];
        [_medcineImg release];
        
        self.seeLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.seeLabel];
        [_seeLabel release];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.medcineText.frame = CGRectMake(110 ,20, WIDTH-110, 40);
    self.medcineText.numberOfLines = 0;
    [self.medcineText sizeToFit];
    self.medcineText.font = [UIFont fontWithName:@"Helvetica-Bold" size:17];
    self.medcineImg.frame = CGRectMake(10, 10, WIDTH / 4.5, WIDTH / 4.5);
    self.seeLabel.frame = CGRectMake(WIDTH-60, 60, 100, 40);
    self.seeLabel.font = [UIFont systemFontOfSize:12];
    self.seeLabel.textColor = [UIColor grayColor];
    
}


@end
